{include file="public/header" /}
<style>
    .layui-input-block{width: 50%}
</style>
<body>
<div class="x-body">
    <form action="{:url('save')}" class="layui-form" id="form">
        <input type="hidden" name="id" value="{$info.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">会员编号 </label>
            <div class="layui-input-inline">
                <input type="text" name="code" value="{$info.code}" placeholder="请输入会员编号"  disabled class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">推荐人 </label>
            <div class="layui-input-inline">
                <input type="text" name="parent_code" value="{$info.parent_code}" placeholder="请输入推荐人的编号" disabled class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">昵称 </label>
            <div class="layui-input-inline">
                <input type="hidden" name="nickname" value="{$info.nickname}" placeholder="请输入昵称" lay-verify="required"
                       class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">会员级别 </label>
            <div class="layui-input-inline">
                <select name="level_id" lay-verify="required">
                    <option value="0">暂无</option>
                    {volist name="level" id="v"}
                    <option value="{$v.id}" {if $v.id==$info.level_id}selected{/if}>{$v.title}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号 </label>
            <div class="layui-input-inline">
                <input type="text" name="mobile" value="{$info.mobile}" placeholder="请输入手机号" lay-verify="required" class="layui-input"/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">锁定登录</label>
            <div class="layui-input-inline">
                <input type="radio" name="is_lock" value="0" title="正常" {if !$info.is_lock} checked {/if}>
                <input type="radio" name="is_lock" value="1" title="锁定" {if $info.is_lock} checked {/if}>
            </div>
        </div>
        <div class="layui-form-item" style="text-align: center;">
            <button class="layui-btn" lay-filter="save" lay-submit formObj="#form">保存</button>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
</html>